package com.example.helloworld;

public class PlayerInformation {
    private static PlayerData pData = null;
    
    //Use a Singleton pattern to keep information persistent
    private PlayerInformation() {
        
    }
    
    public static PlayerData getInstance(){
        if(pData == null){
            //create a new instance
            pData = new PlayerData(1);// If no user is already given, just use playerID 1 as default
            // TODO pData.loadPlayer();
            /*
             * Create fake users 1-4.  Give it to loadPlayer as a parameter and it'll
             * connect to the DB and populate pData with appropriate info.
             */
        }
        return pData;
    }
    
    public static void getNewPlayerData(int playerID){
    	// TODO grab the data 
    }
    
    public static int getFriendDucats(){
        return pData.getFriendDucats();
    }
    
    public static void addFriendDucats(int plus){
        pData.addFriendDucats(plus);
    }
    
    public static void subtractFriendDucats(int minus){
        pData.subtractFriendDucats(minus);
    }
}
